package com.wen.mapper;

import com.wen.pojo.ProductType;

import java.util.List;

public interface ProductTypeMapper {
    //查询所有分类
    List<ProductType> typeList();

    //根据分类编码查询分类
    ProductType findPCode(ProductType productType);

    //根据type_name查询
    ProductType findPName(String typeName);

    //添加分类
    int addType(ProductType productType);

    //删除分类
    int delType(Integer typeId);

    //修改分类
    int updType(ProductType productType);
}